package com.gxa.auth.controller;

import com.gxa.auth.service.AuthenticationService;
import dto.ResultDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import param.AuthParam;

import javax.annotation.Resource;

@RestController
public class AuthenticationController {

    @Resource
    private AuthenticationService authenticationService;

    @PostMapping("/authentication")
    public ResultDTO authentication(@RequestBody AuthParam authParam){
        return authenticationService.authentication(authParam);
    }

}
